package com.sunshine.feign.server;

import com.sunshine.feign.bean.Person;
import com.sunshine.feign.bean.Result;
import feign.Headers;
import feign.RequestLine;

/**
 * @author WeiHong
 * @date 2018/11/19
 */

public interface IPersonClient {

    /**
     * 创建客户
     * @param person
     * @return
     */
    @RequestLine("POST /person/create")
    @Headers("Content-Type: application/json")
    String createPerson(Person person);

    @RequestLine("POST /person/createXML")
    @Headers("Content-Type: application/xml")
    Result createXmlPerson(Person person);

}
